import request from "@/utils/request";

// 论坛列表
const getForum=(data)=>request("/community/getlist","GET",data)
// 论坛详情
const getForumInfo=(data)=>request("/community/getdetail","GET",data)
// 评论列表
const getComm=(data)=>request("/community/getcommentlist","GET",data)
// 发布论坛
const getPublush=(data)=>request("/community/publish","POST",data)
// 我的发布论坛列表
const getMyList=(data)=>request("/community/getmylist","GET",data)
// 删除论坛
const getDelList=(data)=>request("/community/del","POST",data)
// 论坛上下架
const getUpdown=(data)=>request("/community/updown","POST",data)
// 发布评论
const getReleaseComm=(data)=>request("/community/addcomment","POST",data)
export {
    getForum,
    getForumInfo,
    getComm,
    getPublush,
    getMyList,
    getDelList,
    getUpdown,
    getReleaseComm
}